{% extends "Iutomgl6Bundle::layout.html.twig" %}

{% block title %}Création de ticket{% endblock %}

{% block body %}
<h1>Materiel</h1>

<table class="record_properties">
    <tbody>
        <tr>
            <th>Identifiant :</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>Nom :</th>
            <td>{{ entity.nomMateriel }}</td>
        </tr>
        <tr>
            <th>Reference :</th>
            <td>{{ entity.referenceMateriel }}</td>
        </tr>
        <tr>
            <th>Description :</th>
            <td>{{ entity.descriptionMateriel }}</td>
        </tr>
        <tr>
            <th>Constructeur :</th>
            <td>{{ entity.constructeurMateriel }}</td>
        </tr>
    </tbody>
</table>


        <a href="{{ path('materiel') }}"id="retour">
            <button> Retour </button>
        </a>

        <a href="{{ path('materiel_edit', { 'id': entity.id }) }}"id="edit">
            <button> Editer </button>
        </a>

        <form action="{{ path('materiel_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Supprimer</button>
        </form>

{% endblock %}